﻿using System;

using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;


namespace LDBUtilities
{
    public class Keyboard
    {
        public const int KBDI_KEYBOARD_PRESENT = 0x0001; //Indicates whether or not the system has keyboard hardware.
        public const int KBDI_KEYBOARD_ENABLED = 0x0002; //Indicates whether or not the keyboard hardware is enabled. This bit is assumed to be set but can be modified with EnableHardwareKeyboard.
        public const int KBDI_KEYBOARD_ENTER_ESC = 0x0004; //Indicates whether or not the keyboard hardware has ENTER and ESC keys.
        public const int KBDI_KEYBOARD_ALPHA_NUM = 0x0008; //Indicates whether or not the keyboard hardware has alphanumeric keys.

        public const int MOUSEEVENTF_LEFTDOWN = 2;
        public const int MOUSEEVENTF_LEFTUP = 4;
        public const int MOUSEEVENTF_RIGHTDOWN = 8;
        public const int MOUSEEVENTF_RIGHTUP = 16;

        /**
         * Get the status of the hardware keyboard.
         */
        [DllImport("coredll", SetLastError = true)]
        extern public static int GetKeyboardStatus();

        /**
         * Send a mouse click.
         */
        [DllImport("coredll", SetLastError = true)]
        extern public static int mouse_event();
    
    }
}
